% version                    = 1;
% stdYieldsOverall           = mean(stdData(structData.numMacro+1:structData.numMacro+structData.numYields,1));
% calibrateParams.stdMhours  = stdData(1,1)*ScalingMacro;
% calibrateParams.stdMwage   = stdData(2,1)*ScalingMacro;
% calibrateParams.stdMdc     = stdData(3,1)*ScalingMacro;
% calibrateParams.stdMinf    = stdData(4,1)*ScalingMacro/2;
% calibrateParams.stdMr1     = (stdData(5,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdMr4     = (stdData(6,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdMr12    = (stdData(7,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdMr20    = (stdData(8,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdMr28    = (stdData(9,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdMr40    = (stdData(10,1)*(1-version)+version*stdYieldsOverall)*ScalingYield;
% calibrateParams.stdSurvey  = nanmean(stdData(11:14,1))*ScalingYield;

stdData                    = nanstd(structData.data,0,1)';
stdYieldsOverall           = mean(stdData(structData.numMacro+1:structData.numMacro+structData.numYields,1));
calibrateParams.stdMhours  = stdData(1,1);
calibrateParams.stdMwage   = stdData(2,1);
calibrateParams.stdMdc     = stdData(3,1);
calibrateParams.stdMinf    = stdData(4,1);
calibrateParams.stdMr1     = stdYieldsOverall;
calibrateParams.stdMr4     = stdYieldsOverall;
calibrateParams.stdMr12    = stdYieldsOverall;
calibrateParams.stdMr20    = stdYieldsOverall;
calibrateParams.stdMr28    = stdYieldsOverall;
calibrateParams.stdMr40    = stdYieldsOverall;
calibrateParams.stdSurvey  = nanmean(stdData(11:14,1));
calibrateParams.ScalingMacro= ScalingMacro;
calibrateParams.ScalingYield= ScalingYield;

calibrateParams.PHI        = 0.075;
calibrateParams.ETA        = 6;
calibrateParams.KoY        = 2.5;
calibrateParams.THETA      = 0.4;
calibrateParams.DELTA      = 0.025;
calibrateParams.MUZss      = exp(mean(structData.data(:,3))/4);
calibrateParams.NU         = 1;
calibrateParams.lss        = 1/3;
calibrateParams.U0         = 0;
calibrateParams.U0d        = 0;
calibrateParams.RHOR       = 0;
calibrateParams.B          = 0.0;
calibrateParams.PHIy       = 0;
calibrateParams.PHIy_1     = 0;
calibrateParams.PHIc       = 0;
calibrateParams.PHIl       = 0;
calibrateParams.XI         = 0.75;
calibrateParams.CHI0       = 0;
calibrateParams.CRRA       = 10;
calibrateParams.OMEGAz     = 0;
calibrateParams.OMEGAd     = 0;
calibrateParams.OMEGAn     = 0;
calibrateParams.OMEGAp     = 0;
calibrateParams.OMEGAa     = 0;
calibrateParams.BETTA      = 0.9995;
calibrateParams.KAPAw      = 0.00;
calibrateParams.PHIpai     = 0;
